package com.xl.exp.vo;

import java.lang.reflect.Field;

public class UserVo {

    private String username;

    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean checkUser(){
        boolean boo = false;
        if (this.username != null && !this.getUsername().equals("") ){
            boo = true;
        }
        if (this.password !=null && !this.getPassword().equals("")){
            boo = true;
        }
        return boo;
    }

    public static void main(String[] args) {
        Class clazz = UserVo.class;
        Field[] fields = clazz.getDeclaredFields();
        for(Field field : fields){
            System.out.println(field.getName());
        }

    }
}
